package nGui.controls.menu;

import nGui.controls.menu.Menu;
import nGui.controls.menu.IMenu;
import nGui.controls.Control;

class Submenu extends Control, implements IMenu
{
	private var handle : String;

	public function new( handle : String, menu : Menu )
	{
		super();
		this.__c = ngui_submenu( untyped handle.__s, menu.__c );
		this.handle = handle;
		setHandle( handle );
	}

	static var ngui_submenu = neko.Lib.load("nGui","ngui_element_submenu",2);
}
